<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
    <body>
        <div class="gray-bg">
            <div class="layui-fluid">
                <div class="layui-row">
                    <div class="layui-col-xs12">
                        <div class="layui-card">
                            <div class="layui-card-body">
                                <form class="layui-form" lay-filter="form-menu-filter">
                                    <div class="layui-row">
                                    <div class="layui-col-md12">
                                            <div class="layui-row layui-col-space10 layui-form-item">
                                                <div class="layui-col-lg4">
                                                    <label class="layui-form-label">菜单名称：</label>
                                                    <div class="layui-input-block">
                                                        <input type="text" name="menuName" placeholder=""
                                                               autocomplete="off" class="layui-input"/>
                                                    </div>
                                                </div>
                                                <div class="layui-col-lg4">
                                                    <label class="layui-form-label">请求地址：</label>
                                                    <div class="layui-input-block">
                                                        <input type="text" name="url" placeholder=""
                                                               autocomplete="off" class="layui-input"/>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="layui-row" style="text-align: right">
                                                <button id="btnSearch" lay-submit class="layui-btn" data-type="reload"><i class="layui-icon">&#xe615;</i>搜索
                                                </button>
                                                <button  type="reset" class="layui-btn"><i class="layui-icon">&#xe669;</i>重置
                                                </button>
                                            </div>
                                    </div>
                                </div>
                                </form>
                            </div>
                        </div>
                        <div class="layui-card">
                            <div class="layui-card-body">
                                <div class="layui-btn-container" shiro:hasPermission="system:menu:add">
                                    <button class="layui-btn layui-btn-sm" lay-filter="toolbar-menu-add"
                                            shiro:hasPermission="system:menu:add">新增根菜单
                                    </button>
                                    <button class="layui-btn layui-btn-sm" lay-filter="toolbar-menu-zhedie">全部折叠
                                    </button>
                                    <button class="layui-btn layui-btn-sm" lay-filter="toolbar-menu-zhankai">全部展开
                                    </button>
                                </div>
                                <table class="layui-table layui-form" id="table_menu" lay-filter="table_menu">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script th:inline="javascript">
            var editFlag = [[${@permission.hasPermi('system:menu:edit')}]];
            var removeFlag = [[${@permission.hasPermi('system:menu:remove')}]];
            var prefix = ctx + "system/menu";
        </script>
        <script>
            layui.config({
                base: ctx + 'js/admin/menu/'
            }).use(['admin_menu'], function () {
                var menu = layui.admin_menu;
                console.log('menu:', menu)
                menu.init({
                    "prefix": prefix,
                    "editFlag": editFlag
                });
            });
        </script>
        <style scoped>
        </style>
    </body>
</html>